package com.kefu.call.vo;

import java.util.Date;
import javax.validation.constraints.Size;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractInsertVo;
import com.kefu.call.model.CdrSmhistory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author CodeGenerator
 * @date 2022/07/26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(description = "计费_套餐扣除历史记录")
public class CdrSmhistoryInsertVo extends AbstractInsertVo<CdrSmhistory> {

    
    @ApiModelProperty(value = "客户ID")
    private String company;
    
    @ApiModelProperty(value = "余额")
    private String yy;
    
    @ApiModelProperty(value = "扣除金额，租金")
    private String xykc;
    
    @ApiModelProperty(value = "扣除后金额")
    private String kchje;
    @ApiModelProperty(value = "扣除时间")
    private Date createtime;

    @Override
    public CdrSmhistory convert() {
        CdrSmhistory info = new CdrSmhistory();
	    info.setCompany(company);
	    info.setYy(yy);
	    info.setXykc(xykc);
	    info.setKchje(kchje);
	    info.setCreatetime(createtime);
        KefuContext context = KefuContext.getKefuContext();
	    return info;
	}
}